import request from "@/config/utils/request";
// import { loadingParams } from "@/basa/utils/public";
// 列表
export function listPageInvoiceWriteOff(data) {
  return request({
    url: "/apis/smp/invoicewriteoff/listPageInvoiceWriteOff",
    method: "POST",
    data
  });
}

// 选择发票单
export function listInvoceBasicPage(data) {
  return request({
    url: "/apis/smp/invocebasic/listInvoceBasicPage",
    method: "POST",
    data
  });
}
// 新增查询
export function getInvoceBasicById(data) {
  return request({
    url: "/apis/smp/invocebasic/getInvoceBasicById",
    method: "POST",
    data
  });
}

//   保存
export function saveInvoiceWriteOff(data) {
  return request({
    url: "/apis/smp/invoicewriteoff/saveInvoiceWriteOff",
    method: "POST",
    data
  });
}

// 查看
export function getInvoiceWriteOffById(data) {
  return request({
    url: "/apis/smp/invoicewriteoff/getInvoiceWriteOffById",
    method: "POST",
    data
  });
}
// 提交
export function submitInvoiceWriteOff(data) {
  return request({
    url: "/apis/smp/invoicewriteoff/submitInvoiceWriteOff",
    method: "POST",
    data
  });
}

// 删除
export function removeInvoiceWriteOff(data) {
  return request({
    url: "/apis/smp/invoicewriteoff/removeInvoiceWriteOff",
    method: "POST",
    data
  });
}

// 编辑提交
export function editInvoiceWriteOff(data) {
  return request({
    url: "/apis/smp/invoicewriteoff/editInvoiceWriteOff",
    method: "POST",
    data
  });
}

// 编辑提交
export function revokeInvoiceWriteOff(data) {
  return request({
    url: "/apis/smp/invoicewriteoff/revokeInvoiceWriteOff",
    method: "POST",
    data
  });
}
// 新增暂存
export function tempSaveInvoiceWriteOff(data) {
  return request({
    url: "/apis/smp/invoicewriteoff/tempSaveInvoiceWriteOff",
    method: "POST",
    data
  });
}
// 编辑暂存
export function tempEditInvoiceWriteOff(data) {
  return request({
    url: "/apis/smp/invoicewriteoff/tempEditInvoiceWriteOff",
    method: "POST",
    data
  });
}
